﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Content/Site.Master" CodeBehind="health_legal.aspx.vb" Inherits="CupsApp.Web.Form.health_legal" %>
<%@ Register assembly="wwDataBinder" namespace="MsdnMag.Web.Controls" tagprefix="ww" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="tabs">
 <div class="tab"><asp:LinkButton ID="lnkPersonal" Text = "Personal" runat="server"   ></asp:LinkButton></div> <div class="tab"><asp:LinkButton ID="lnkBackground" Text = "Background" runat="server"></asp:LinkButton></div> <div class="tabSelected"><asp:LinkButton ID="lnkHealthLegal" Text = "Health / Legal" Enabled = "false" runat="server"></asp:LinkButton></div> 
 <div class="tab"><asp:LinkButton ID="lnkHousing" Text = "Housing" runat="server"></asp:LinkButton></div><div class="tab"><asp:LinkButton ID="lnkFollowUp" Text = "Follow-Up" runat="server"></asp:LinkButton></div><div class="tab"><asp:LinkButton ID="lnkStatus" Text = "Status" runat="server"></asp:LinkButton></div><div class="tab"><asp:LinkButton ID="lnkExit" Text = "Exit" runat="server"></asp:LinkButton></div>
</div>


<div class="Content">
<div class="FullRow1">
     <div class="FormHeading">
         <strong><asp:Label ID="Label1" runat="server" Text="SELECTED CLIENT"></asp:Label></strong>
    </div>
  </div>
<asp:FormView ID="FormView1" runat="server" DataSourceID="ObjectDataSource4" 
        Width="100%"> 
        <ItemTemplate >
        <b>First Name:</b><i><%# Eval("FirstName") %></i><br />
        <b>Last Name:</b> <i><%# Eval("LastName") %></i><br />
        <b>Phone No:</b> <i><%# Eval("Phone") %></i><br />
        <b>Email:</b> <i><%# Eval("Email") %></i><br />
        <b>Birth Date:</b> <i><%# Eval("BirthDate") %></i><br />
        </ItemTemplate>   
  </asp:FormView>
<div class="filler">
         <center> <strong><asp:Label ID="lvlMsg" runat="server" ForeColor="#00CC00" ></asp:Label></strong></center></div><div class="filler"></div>
   <div class="FullRow1">
     <div class="FormHeading">
         <strong><asp:Label ID="lblBasicInfo" runat="server" Text="HEALTH"></asp:Label></strong>
    </div>
  </div> 
  <div class="filler"></div>
   <div class="FullRow1">
    <div class="ContentRow1">
        <asp:Label ID="lblIssues" runat="server" Text="Do you have any of the following?"></asp:Label>
    </div>
    <div class="ContentRow7">
        <asp:CheckBox ID="chkIssue1" runat="server" Text="Mental Health Issues" />
    </div>
    <div class="ContentRow4">
        <asp:CheckBox ID="chkIssue2" runat="server" Text="Substance Abuse Issues" />
    </div>
    <div class="ContentRow7">
        <asp:CheckBox ID="chkIssue3" runat="server" Text="Physical Health Issues" />
    </div>
    <div class="ContentRow7">
        <asp:CheckBox ID="chkIssue4" runat="server" Text="HIV / AIDS" />
    </div>
  </div>
 
 <div class="FullRow1">
    <div class="ContentRow6">
        <asp:Label ID="lblHealthInvolvement" runat="server" Text="Have you had any involvement with the health system in the past year you were homeless?"></asp:Label>
    </div>
    <div class="ContentRow2">
       <asp:CheckBox ID="chkHealthInvolvement1" runat="server" Text="Yes" />
        <asp:MutuallyExclusiveCheckBoxExtender ID="chkHealthInvolvement1_MutuallyExclusiveCheckBoxExtender" 
            runat="server" Enabled="True" Key="HealthInvolvement" TargetControlID="chkHealthInvolvement1">
        </asp:MutuallyExclusiveCheckBoxExtender>
        <asp:CheckBox ID="chkHealthInvolvement2" runat="server" Text="No" />
        <asp:MutuallyExclusiveCheckBoxExtender ID="chkHealthInvolvement2_MutuallyExclusiveCheckBoxExtender" 
            runat="server" Enabled="True" Key="HealthInvolvement" TargetControlID="chkHealthInvolvement2">
        </asp:MutuallyExclusiveCheckBoxExtender>
        </div>
</div>
 
  <div class="FullRow1">
    <div class="ContentRow6">
        <asp:Label ID="lblTimesHospital" runat="server" 
            Text="How many times have you been hospitalized in the past year?"></asp:Label>
    </div>
    <div class="ContentRow2">
         <asp:TextBox ID="txtTimesHospital" runat="server"></asp:TextBox>
        </div>
</div>

 <div class="FullRow1">
    <div class="ContentRow6">
        <asp:Label ID="lblDaysHospital" runat="server" 
            
            Text="How many days in total have you spent  hospitalized in the past year? "></asp:Label>
    </div>
    <div class="ContentRow2">
        <asp:TextBox ID="txtDaysHospital" runat="server"></asp:TextBox>
        </div>
</div>

 <div class="FullRow1">
    <div class="ContentRow6">
        <asp:Label ID="lblTimesEMS" runat="server" 
            Text="How many times have you utilize the Emergency Medical Service ( EMS ) in the past year?"></asp:Label>
    </div>
    <div class="ContentRow2">
        <asp:TextBox ID="txtTimesEMS" runat="server"></asp:TextBox>
        </div>
</div>
 
  <div class="FullRow1">
    <div class="ContentRow6">
        <asp:Label ID="lblTimesER" runat="server" 
            Text="How many time have you been to the hospital emergency room in the past year?"></asp:Label>
    </div>
    <div class="ContentRow2">
        <asp:TextBox ID="txtTimesER" runat="server"></asp:TextBox>
        </div>
</div>
 
  <div class="FullRow1">
    
     <div class="FormHeading">
            <strong><asp:Label ID="lblFirstLanguage" runat="server" 
                Text="JUSTICE AND LEGAL"></asp:Label></strong>
    </div>
  </div> 
   
 <div class="FullRow1">
    <div class="ContentRow6">
        <asp:Label ID="lblLegalInvolvement" runat="server" 
            Text="Have you had any involvement with the police or the legal system in the past year while you were homeless?  "></asp:Label>
    </div>
    <div class="ContentRow2">
       <asp:CheckBox ID="chkLegalInvolvement1" runat="server" Text="Yes" />
        <asp:MutuallyExclusiveCheckBoxExtender ID="chkLegalInvolvement1_MutuallyExclusiveCheckBoxExtender" 
            runat="server" Enabled="True" Key="LegalInvolvement" TargetControlID="chkLegalInvolvement1">
        </asp:MutuallyExclusiveCheckBoxExtender>
        <asp:CheckBox ID="chkLegalInvolvement2" runat="server" Text="No" />
        <asp:MutuallyExclusiveCheckBoxExtender ID="chkLegalInvolvement2_MutuallyExclusiveCheckBoxExtender" 
            runat="server" Enabled="True" Key="LegalInvolvement" TargetControlID="chkLegalInvolvement2">
        </asp:MutuallyExclusiveCheckBoxExtender>
        </div>
</div>
 
  <div class="FullRow1">
    <div class="ContentRow6">
        <asp:Label ID="lblTimesJail" runat="server" 
            Text="How many times have you been in jail in the past year?"></asp:Label>
    </div>
    <div class="ContentRow2">
         <asp:TextBox ID="txtTimesJail" runat="server"></asp:TextBox>
        </div>
</div>

 <div class="FullRow1">
    <div class="ContentRow6">
        <asp:Label ID="lblDaysJail" runat="server" 
            Text="How many days in total have you spent  in jail in the past year? "></asp:Label>
    </div>
    <div class="ContentRow2">
        <asp:TextBox ID="txtDaysJail" runat="server"></asp:TextBox>
        </div>
</div>

 <div class="FullRow1">
    <div class="ContentRow6">
        <asp:Label ID="lblTimesPoliceInteraction" runat="server" 
            
            Text="How many times have you had interaction with the police in the past year?"></asp:Label>
    </div>
    <div class="ContentRow2">
        <asp:TextBox ID="txtTimesPoliceInteraction" runat="server"></asp:TextBox>
        </div>
</div>
 
  <div class="FullRow1">
    <div class="ContentRow6">
        <asp:Label ID="lblTimesCourt" runat="server" 
            Text="How many court appearances have you had in the past year?"></asp:Label>
    </div>
    <div class="ContentRow2">
        <asp:TextBox ID="txtTimesCourt" runat="server"></asp:TextBox>
        </div>
</div>
 
  <div class="FullRow1">
  <asp:HiddenField ID="Client_ID" runat="server" />
     <hr/>
     <center><asp:Button ID="btnSave" runat="server" Text="Save" Width="83px" /></center>
  </div>
    
  <br />

</div>

        <ww:wwDataBinder ID="wwDataBinder1" runat="server">
            <DataBindingItems>
                    <ww:wwDataBindingItem ID="WwDataBindingItem1" runat="server" ControlId="lblIssues" BindingMode="OneWay" 
                        BindingSource="_data" BindingSourceMember="QuestionsText[lblIssues]">
                    </ww:wwDataBindingItem>
                    <ww:wwDataBindingItem ID="WwDataBindingItem2" runat="server" ControlId="chkIssue1" BindingMode="TwoWay" 
                        BindingSource="_data" BindingSourceMember="AnswersText[chkIssue1]" BindingProperty="Checked">
                    </ww:wwDataBindingItem>
                    <ww:wwDataBindingItem ID="WwDataBindingItem3" runat="server" ControlId="chkIssue2" BindingMode="TwoWay" 
                        BindingSource="_data" BindingSourceMember="AnswersText[chkIssue2]" BindingProperty="Checked">
                    </ww:wwDataBindingItem>
                    <ww:wwDataBindingItem ID="WwDataBindingItem4" runat="server" ControlId="chkIssue3" BindingMode="TwoWay" 
                        BindingSource="_data" BindingSourceMember="AnswersText[chkIssue3]" BindingProperty="Checked">
                    </ww:wwDataBindingItem>
                    <ww:wwDataBindingItem ID="WwDataBindingItem5" runat="server" ControlId="chkIssue4" BindingMode="TwoWay" 
                        BindingSource="_data" BindingSourceMember="AnswersText[chkIssue4]" BindingProperty="Checked">
                    </ww:wwDataBindingItem>
                    <ww:wwDataBindingItem ID="WwDataBindingItem6" runat="server" ControlId="lblHealthInvolvement" BindingMode="OneWay" 
                        BindingSource="_data" BindingSourceMember="QuestionsText[lblHealthInvolvement]">
                    </ww:wwDataBindingItem>
                     <ww:wwDataBindingItem ID="WwDataBindingItem7" runat="server" ControlId="chkHealthInvolvement1" BindingMode="TwoWay" 
                        BindingSource="_data" BindingSourceMember="AnswersText[chkHealthInvolvement1]" BindingProperty="Checked">
                    </ww:wwDataBindingItem>
                    <ww:wwDataBindingItem ID="WwDataBindingItem8" runat="server" ControlId="chkHealthInvolvement2" BindingMode="TwoWay" 
                        BindingSource="_data" BindingSourceMember="AnswersText[chkHealthInvolvement2]" BindingProperty="Checked">
                    </ww:wwDataBindingItem>
                    <ww:wwDataBindingItem ID="WwDataBindingItem9" runat="server" ControlId="lblTimesHospital" BindingMode="OneWay" 
                        BindingSource="_data" BindingSourceMember="QuestionsText[lblTimesHospital]">
                    </ww:wwDataBindingItem>
                     <ww:wwDataBindingItem ID="WwDataBindingItem10" runat="server" ControlId="txtTimesHospital" BindingMode="TwoWay" 
                        BindingSource="_data" BindingSourceMember="AnswersText[txtTimesHospital]" >
                    </ww:wwDataBindingItem>
                     <ww:wwDataBindingItem ID="WwDataBindingItem11" runat="server" ControlId="lblDaysHospital" BindingMode="OneWay" 
                        BindingSource="_data" BindingSourceMember="QuestionsText[lblDaysHospital]">
                    </ww:wwDataBindingItem>
                    <ww:wwDataBindingItem ID="WwDataBindingItem12" runat="server" ControlId="txtDaysHospital" BindingMode="TwoWay" 
                        BindingSource="_data" BindingSourceMember="AnswersText[txtDaysHospital]" >
                    </ww:wwDataBindingItem>
                    <ww:wwDataBindingItem ID="WwDataBindingItem13" runat="server" ControlId="lblTimesEMS" BindingMode="OneWay" 
                        BindingSource="_data" BindingSourceMember="QuestionsText[lblTimesEMS]">
                    </ww:wwDataBindingItem>
                    <ww:wwDataBindingItem ID="WwDataBindingItem14" runat="server" ControlId="txtTimesEMS" BindingMode="TwoWay" 
                        BindingSource="_data" BindingSourceMember="AnswersText[txtTimesEMS]" >
                    </ww:wwDataBindingItem>
                     <ww:wwDataBindingItem ID="WwDataBindingItem15" runat="server" ControlId="lblTimesER" BindingMode="OneWay" 
                        BindingSource="_data" BindingSourceMember="QuestionsText[lblTimesER]">
                    </ww:wwDataBindingItem>
                    <ww:wwDataBindingItem ID="WwDataBindingItem16" runat="server" ControlId="txtTimesER" BindingMode="TwoWay" 
                        BindingSource="_data" BindingSourceMember="AnswersText[txtTimesER]" >
                    </ww:wwDataBindingItem>
                    <ww:wwDataBindingItem ID="WwDataBindingItem17" runat="server" ControlId="lblLegalInvolvement" BindingMode="OneWay" 
                        BindingSource="_data" BindingSourceMember="QuestionsText[lblLegalInvolvement]">
                    </ww:wwDataBindingItem>
                    <ww:wwDataBindingItem ID="WwDataBindingItem18" runat="server" ControlId="chkLegalInvolvement1" BindingMode="TwoWay" 
                        BindingSource="_data" BindingSourceMember="AnswersText[chkLegalInvolvement1]" BindingProperty="Checked" >
                    </ww:wwDataBindingItem>
                    <ww:wwDataBindingItem ID="WwDataBindingItem19" runat="server" ControlId="chkLegalInvolvement2" BindingMode="TwoWay" 
                        BindingSource="_data" BindingSourceMember="AnswersText[chkLegalInvolvement2]" BindingProperty="Checked" >
                    </ww:wwDataBindingItem>
                    <ww:wwDataBindingItem ID="WwDataBindingItem20" runat="server" ControlId="lblTimesJail" BindingMode="OneWay" 
                        BindingSource="_data" BindingSourceMember="QuestionsText[lblTimesJail]">
                    </ww:wwDataBindingItem>
                    <ww:wwDataBindingItem ID="WwDataBindingItem21" runat="server" ControlId="txtTimesJail" BindingMode="TwoWay" 
                        BindingSource="_data" BindingSourceMember="AnswersText[txtTimesJail]"  >
                    </ww:wwDataBindingItem>
                     <ww:wwDataBindingItem ID="WwDataBindingItem22" runat="server" ControlId="lblDaysJail" BindingMode="OneWay" 
                        BindingSource="_data" BindingSourceMember="QuestionsText[lblDaysJail]">
                    </ww:wwDataBindingItem>
                    <ww:wwDataBindingItem ID="WwDataBindingItem23" runat="server" ControlId="txtDaysJail" BindingMode="TwoWay" 
                        BindingSource="_data" BindingSourceMember="AnswersText[txtDaysJail]"  >
                    </ww:wwDataBindingItem>
                    <ww:wwDataBindingItem ID="WwDataBindingItem24" runat="server" ControlId="lblTimesPoliceInteraction" BindingMode="OneWay" 
                        BindingSource="_data" BindingSourceMember="QuestionsText[lblTimesPoliceInteraction]">
                    </ww:wwDataBindingItem>
                    <ww:wwDataBindingItem ID="WwDataBindingItem25" runat="server" ControlId="txtTimesPoliceInteraction" BindingMode="TwoWay" 
                        BindingSource="_data" BindingSourceMember="AnswersText[txtTimesPoliceInteraction]"  >
                    </ww:wwDataBindingItem>
                    <ww:wwDataBindingItem ID="WwDataBindingItem26" runat="server" ControlId="lblTimesCourt" BindingMode="OneWay" 
                        BindingSource="_data" BindingSourceMember="QuestionsText[lblTimesCourt]">
                    </ww:wwDataBindingItem>
                    <ww:wwDataBindingItem ID="WwDataBindingItem27" runat="server" ControlId="txtTimesCourt" BindingMode="TwoWay" 
                        BindingSource="_data" BindingSourceMember="AnswersText[txtTimesCourt]"  >
                    </ww:wwDataBindingItem>
                    <ww:wwDataBindingItem runat="server" 
                        ControlId="chkLegalInvolvement2_MutuallyExclusiveCheckBoxExtender">
                    </ww:wwDataBindingItem>
            </DataBindingItems> 
        </ww:wwDataBinder>
               <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
                </asp:ToolkitScriptManager>
                
    <asp:ObjectDataSource ID="ObjectDataSource4" runat="server" 
        SelectMethod="GetClient" TypeName="CupsApp.Service.CupsDomainService">
         <SelectParameters>
            <asp:QueryStringParameter Name="id" QueryStringField="ClientID" Type="Int32"  />
    </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>
